/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/15
\**********************/
#include "LuaGifAnimEx.h"

#ifdef USE_XIMAGE_EFFECT

#define CObjPtr ((CGifAnimExUI*)m_cobj)

namespace DuiLib {

void LuaGifAnimEx::SetVisible(bool bVisible)
{
    CObjPtr->SetVisible(bVisible);
}

void LuaGifAnimEx::SetInternVisible(bool bVisible)
{
    CObjPtr->SetInternVisible(bVisible);
}

void LuaGifAnimEx::StartAnim()
{
    CObjPtr->StartAnim();
}

void LuaGifAnimEx::StopAnim()
{
    CObjPtr->StopAnim();
}

SDLUA_BEGIN_REGISTER(LuaGifAnimEx, GifAnimEx, Label)
    SDLUA_REGISTER_FUN_CPP(LuaGifAnimEx, SetVisible, SetVisible)
    SDLUA_REGISTER_FUN_CPP(LuaGifAnimEx, SetInternVisible, SetInternVisible)
    SDLUA_REGISTER_FUN_CPP(LuaGifAnimEx, StartAnim, StartAnim)
    SDLUA_REGISTER_FUN_CPP(LuaGifAnimEx, StopAnim, StopAnim)
SDLUA_END_REGISTER

SDLUA_BEGIN_UNREGISTER(LuaGifAnimEx, GifAnimEx)
SDLUA_END_UNREGISTER(GifAnimEx)

}

#undef CObjPtr

#endif //USE_XIMAGE_EFFECT